2d40c8b21caa1270971e98cd0d179fe634688222,clc/modules/cluster-manager/src/main/java/com/eucalyptus/blockstorage/VolumeManager.java,VolumeManager,detach,#DetachVolumeType#,399
Before Change
}
ServiceConfiguration scVm;
try {
scVm = StorageUtil.getActiveSc( cluster.getName( ) ).getServiceConfiguration( );
} catch ( Exception ex ) {
LOG.error( ex , ex );
throw new EucalyptusCloudException( "Failed to lookup SC for cluster: " + cluster, ex );
}
try {
StorageUtil.send( scVm.getName( ), new DetachStorageVolumeType( cluster.getNode( vm.getServiceTag( ) ).getIqn( ), volume.getVolumeId( ) ) );
} catch ( Exception e ) {
LOG.debug( e, e );
throw new EucalyptusCloudException( e.getMessage( ) );
After Change
}
Service scVm;
try {
scVm = StorageUtil.getActiveSc( cluster.getName( ) );
} catch ( Exception ex ) {
LOG.error( ex, ex );
throw new EucalyptusCloudException( "Failed to lookup SC for cluster: " + cluster, ex );
}
try {
scVm.getDispatcher( ).send( new DetachStorageVolumeType( cluster.getNode( vm.getServiceTag( ) ).getIqn( ), volume.getVolumeId( ) ) );
} catch ( Exception e ) {
LOG.debug( e, e );
throw new EucalyptusCloudException( e.getMessage( ) );